<html>
<body>
<?php
$conexion = mysql_connect("localhost","root","");
mysql_select_db("otra", $conexion);
$result = mysql_query("SELECT nombre, grado FROM estudiante where clave = '1'", $conexion);
echo "<table border = '1'> \n";
echo "<tr> \n";
echo "<td><b>Estudiantes</b></td><td><b>Grado</b></td> \n";
//echo "<td><b>MATERIA</b></td> \n";
echo "</tr> \n";

while ($row = mysql_fetch_row($result)){
  echo "<tr> \n";
  echo "<td>$row[0]</td> \n";
  echo "<td>$row[1]</td> \n";
  echo "</tr> \n";
}
echo "</table> \n";
echo ""
?>
</body>
</html>